/* xsh_rmdtest.c - xsh_rmdtest */

#include <xinu.h>
#include <stdio.h>
#include <string.h>

/*------------------------------------------------------------------------
 * xsh_rmdtest - test shell for ram disk device
 *------------------------------------------------------------------------
 */
shellcmd xsh_rmdtest(int nargs, char *args[])
{
	int retval;	
	retval = open(RAMDISK, "100", NULL);
	if (retval == OK )
		kprintf("Open is OK!\r\n");
	extratest_write();
	retval = extratest_verify();
	if (retval == OK )
		kprintf("Read and Write are OK!\r\n");
	retval = close(RAMDISK);
	if (retval == OK )
		kprintf("Close is OK!\r\n");
	return OK;
}
